package lab02.test37;

public class Student {
    String name;
    String sort;
    double Chinese;
    double math;
    double chemical;

    public Student(){}
    public Student(String name,String sort,double Chinese,double math,double chemical){
        this.name = name;
        this.sort =sort;
        this.Chinese = Chinese;
        this.math = math;
        this.chemical = chemical;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) { this.name = name; }

    public String getSort() {
        return sort;
    }
    public void setSort(String sort) { this.sort = sort; }

    public double getChemical() { return chemical; }
    public void setChemical(double chemical) { this.chemical = chemical; }

    public void setChinese(double chinese) { Chinese = chinese; }
    public double getChinese() { return Chinese; }

    public void setMath(double math) { this.math = math; }
    public double getMath() { return math; }

    public  double average(double  math,double chemical,double Chinese){return (math+chemical+Chinese)/3;}
}
